home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / network / lattice / portlib.lzh / PORTLIB / PORTLIB.H < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-06  |  1.1 KB  |  52 lines

  1. #ifndef _PORTLIB_H
  2. #define _PORTLIB_H
  3.  
  4. #include <stdio.h>
  5. #include <signal.h>
  6. #include <sys/types.h>
  7. #include <sys/time.h>
  8. #include "sigvec.h"
  9. #include "itimer.h"
  10.  
  11. #define _BSD_SOURCE
  12.  
  13. #ifndef TBDELAY
  14. #define TBDELAY        0
  15. #endif
  16.  
  17. #ifndef TIOCPKT
  18. #define TIOCPKT_DATA        0
  19. #define TIOCPKT_FLUSHREAD    1
  20. #define TIOCPKT_FLUSHWRITE    2
  21. #define TIOCPKT_STOP        4
  22. #define TIOCPKT_START        8
  23. #define TIOCPKT_NOSTOP        16
  24. #define TIOCPKT_DOSTOP        32
  25. #endif
  26.  
  27. #define MAXHOSTNAMELEN        64
  28.  
  29. #define L_SET            SEEK_SET
  30. #define L_INCR            SEEK_CUR
  31.  
  32. #define d_namlen        d_reclen
  33.  
  34. #ifndef timerclear
  35. #define timerclear(tm)    { (tm)->tv_sec = (tm)->tv_usec = 0; }
  36. #endif
  37.  
  38. typedef __Sigfunc sig_t;
  39.  
  40. __EXTERN int    __fork_and_exit (void);
  41. __EXTERN int    __mint_read (int, void *, long);
  42. __EXTERN int    __mint_write (int, void *, long);
  43. __EXTERN int    __5ms_gettimeofday (struct timeval *, struct timezone *);
  44. __EXTERN int    __5ms_settimeofday (struct timeval *, struct timezone *);
  45.  
  46. __EXTERN int    initgroups (char *, int);
  47.  
  48. #ifdef __GNUC__
  49. __asm__(".globl ___Ident_portlib\n");
  50. #endif
  51. #endif
  52.